package slash.entities;

import org.newdawn.slick.GameContainer;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.geom.*;

import slash.MainGame;
import slash.collision.CollisionMask;

public class CollisionBox extends AbstractEntity{
	
	protected CollisionMask shape;
	protected float posX,posY,width,height;

	public CollisionBox(float posX, float posY, Shape shape) {
		super(posX, posY, shape);
		this.setCollidable(true);
		this.setStationary(true);
	}
	
	public CollisionBox(float x, float y, float w, float h){
		super(x,y,new Rectangle(x,y,w,h));
	}

	@Override
	public void render(Graphics g) {
		if(MainGame.debug()){
			this.getCollisionMask().render(g);
		}
	}

	@Override
	public void update(GameContainer container, int time) {
		// TODO Auto-generated method stub
		
	}

}
